const path = require('path');
module.exports = {
    entry: path.join(__dirname, 'src/main.js'),
  output: {
    filename: 'bundle.js',
    path: path.join(__dirname, 'dist')
  },
  module: {
    rules: [ 
    { 
    test: /\.css$/, //打包规则应用到以css结尾的文件上
    use: ['style-loader', 'css-loader']
    } 
   ] 
  }
}


